load("@aspect_rules_js//js:defs.bzl", "js_library")

js_library(
    name = "node_loader_lib",
    srcs = glob(
        ["*.mjs"],
        exclude = ["index.mjs"],
    ),
    visibility = ["//visibility:public"],
    deps = ["//:node_modules/get-tsconfig"],
)

js_library(
    name = "node_loader",
    srcs = ["index.mjs"],
    visibility = ["//visibility:public"],
    deps = [":node_loader_lib"],
)
